package picounit.java;

import junit.framework.Test;

import picounit.API;
import picounit.java.type.StackTrace;
import picounit.java.type.Type;

public class Implementation implements API {
    public Test generateTestSuite() {
        return new Suite(new StackTrace().callingType(DISTANCE_TO_CALLER));
    }

    public Test generateTestSuite(java.lang.Class<?> caller) {
        return new Suite(new Type(caller));
    }

    private static final int DISTANCE_TO_CALLER = 3;
}
